﻿#ifndef SETPARAMWIDGET_H
#define SETPARAMWIDGET_H

#include <QWidget>
#include <QApplication>
#include <QDomDocument>
#include <QFile>
#include <QTableWidget>
#include <qtablewidget.h>
#include <QHeaderView>
#include <QGridLayout>
#include <QPushButton>
#include <QDebug>
#include <qcombobox.h>
#include <QLabel>
#include <QMessageBox>
#include <QLineEdit>
#include <QButtonGroup>
#include "define.h"
#include "capcontroldefine.h"
#include "quiqss.h"

class QSetParamWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QSetParamWidget(QWidget *parent = nullptr);


signals:
    void signal_get_thresholdparam(int i32Aixs,int cmdid);
    void signal_set_thresholdparam(int i32Aixs,int cmdid,int i32value,int datalen);

public slots:

    void onSetParamButtonClick();

    void onGetParamButtonClick();

    void onParamSaveButtonClick();

    void onRcvData(QVariant var);

private:

    void InitUI();

    void InitParamConfig();

    QWidget* createParamSetWidget();//参数设置

    void setButtonStyleSheet(QPushButton* pBtn);

    int _i32AixsNo;//轴编号


    QTableWidget* _pParamSetWidget;

    QPushButton* _pParamSaveBtn;

    QMap<int,st_cmd_attr> _cmdMap;

    st_thresholdParam _rcv_capdata;
    int _i32FrameCnt;
};

#endif // AXISCONTROLWIDGET_H
